<template>

</template>

<script>
export default {
  name: "CommonUtils",
  methods: {
    isFail(data,that){
      if (data.state === 60000){
        that.$router.push("/login");
      }else if (data.state === 40300){
        that.$router.push("/permission-error");
      }else if(data.state === 60100 || data.state === 60200){
        that.$router.push("/error-info");
        that.$message.error(data.message);
      }else {
        that.$message.error(data.message);
      }
    }
  }
}
</script>

<style scoped>

</style>